package com.example.wechat.api;

import com.example.wechat.model.LoginRequest;
import com.example.wechat.model.LoginResponse;
import com.example.wechat.model.RegisterRequest;
import com.example.wechat.model.RegisterResponse;
import com.example.wechat.model.FriendRequest;
import com.example.wechat.model.FriendResponse;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Header;

public interface ApiService {
    @POST("auth/register")
    Call<RegisterResponse> register(@Body RegisterRequest request);

    @POST("auth/login")
    Call<LoginResponse> login(@Body LoginRequest request);

    @POST("friends/add")
    Call<FriendResponse> addFriend(@Header("Authorization") String token, @Body FriendRequest request);
} 